package com.watafak.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/usr")
public class UsrCrtl {
    @ResponseBody
    @RequestMapping(value = "/info", produces = {"application/json;charset=UTF-8"})
    public String info(@RequestParam("usrid") String usrid) {
        return "{\"user_id\": \"" + usrid + "\", \"welcome\":\"你好\"}";
    }
}
